<html> 
<head> 
    <script type="text/javascript" src="jquery.js"></script> 
    <script type="text/javascript" src="jquery.form.js"></script> 
 
    <script type="text/javascript"> 
        // wait for the DOM to be loaded 
        $(document).ready(function() { 
            // bind 'myForm' and provide a simple callback function 
            $('#myForm').ajaxForm(function() { 
                $('#myForm').hide(2000);
            }); 
        }); 
    </script> 
</head> 

<body>
	<form id="myForm" action="db.php" method="post"> 
    	Name: <input type="text" name="bla" /> 
    	<input type="submit" value="Submit Comment" /> 
	</form>
</body>
</html>